package com.zhuss.bean.unit;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class OrderTemplateParam5 {
	
	private List<Date> orderDate;
	
	private String message;
	
	private String onSiteName;
	
	private String offSiteName;
	
	private String totalPrice;
	
	private Integer personNum;
	
	private Integer num;
	
	private String creator;
	
	private String onSiteTime;
	
	public List<Date> getOrderDate() {
		return orderDate;
	}
	
	public void setOrderDate(List<Date> orderDate) {
		this.orderDate = orderDate;
		StringBuilder sub = new StringBuilder();
		sub.append("（");
		SimpleDateFormat sdf = new SimpleDateFormat("MM-dd");
		int i = 0;
		for (Date date : orderDate) {
			String dateName = sdf.format(date);
			sub.append(dateName);
			if (++i != orderDate.size()) {
				sub.append("、");
			} else {
				sub.append("，");
			}
		}
		sub.append(this.onSiteTime + "（开）");
		sub.append("）");
		message = sub.toString();
	}

	public String getMessage() {
		return message;
	}
	
	public void setMessage(String message) {
		this.message = message;
	}

	public String getOnSiteName() {
		return onSiteName;
	}

	public void setOnSiteName(String onSiteName) {
		this.onSiteName = onSiteName;
	}

	public String getOffSiteName() {
		return offSiteName;
	}

	public void setOffSiteName(String offSiteName) {
		this.offSiteName = offSiteName;
	}

	public String getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getPersonNum() {
		return personNum;
	}

	public void setPersonNum(Integer personNum) {
		this.personNum = personNum;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	public String getOnSiteTime() {
		return onSiteTime;
	}
	
	public void setOnSiteTime(String onSiteTime) {
		this.onSiteTime = onSiteTime;
	}
}